package org.dtrd.modules.evaluation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.evaluation.entity.bean.MmpiDetail;
import org.dtrd.modules.evaluation.entity.bean.MmpiListInfo;
import org.dtrd.modules.evaluation.entity.bean.MmpiListRequest;
import org.dtrd.modules.evaluation.entity.po.DtrdEntEvaluationRdMmpi;

import java.util.List;

/**
 * <p>
 * 明苏尼达多相个性评估服务类
 * </p>
 *
 * @author QR
 * @since 2021-12-15
 */
public interface IDtrdEntEvaluationRdMmpiService extends IService<DtrdEntEvaluationRdMmpi> {

    List<MmpiListInfo> getMmpiList(MmpiListRequest request);

    /**
     * 获取最近的一次量表记录 patientId
     * @param patientId 患者id
     * @return mmpi记录
     */
    MmpiDetail getLatestMmpi(Integer patientId);

    MmpiDetail saveOrUpdateMmpi(MmpiDetail dto);

    boolean removeMmpi(Integer dataId);
}
